/* Layout */
import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)
// const Empty = { template: '<div class="empty"> <transition name="fade-transform" mode="out-in">' +
//   '      <keep-alive :include="cachedViews">' +
//   '        <router-view></router-view>' +
//   '      </keep-alive>' +
//   '    </transition></div>' }
import AppMain from '@/views/layout/components/AppMain'

const activityRoutes= [
  {
    path: '/activity',
    component: Layout,
    // meta: { roles: [] }, // you can set roles in root nav
    redirect: 'noredirect',
    name: 'activity',
    meta: {
      title: '活动管理',
      icon: 'money',
      roles: []
    },
    children: [
      // {
      //   path: 'activity-fund',
      //   name: 'activity-fund',
      //   component: _import('marketing/offerConfiguration/offerExpenditureList'),
      //   meta: {
      //     title: '活动资金统计',
      //     roles: []
      //   }
      // },
      {
        path: 'activity-list',
        name: 'activity-list',
        component: _import('marketing/offerConfiguration/index'),
        meta: {
          title: '优惠活动配置',
          notLog: true,
          roles: ['create','list','edit','del','switch']
        }
      },
      {
        path: '/activity-folder',
        component: AppMain,
        // meta: { roles: [] }, // you can set roles in root nav
        redirect: 'noredirect',
        name: 'activity-folder',
        meta: {
          title: '活动列表',
          // icon: 'money',
          // roles: []
        },
        children:[
          {
            path: 'activity-rebate',
            name: 'activity-rebate',
            component: _import('activities/rebate/index'),
            meta: {
              title: '返水活动',
              notLog: true,
              roles: ['config','list','save']
            }
          },
          {
            path: 'activity-first-recharge',
            name: 'activity-first-recharge',
            component: _import('activities/firstRecharge/index'),
            meta: {
              title: '首充活动',
              notLog: true,
              roles: ['config','list','save']
            }
          },
          {
            path: 'activity-real-win',
            name: 'activity-real-win',
            component: _import('activities/realWin/index'),
            meta: {
              title: '真人连赢活动',
              notLog: true,
              roles: ['config','list','save']
            }
          },
          {
            path: 'activity-sport-go',
            name: 'activity-sport-go',
            component: _import('activities/sportGo/index'),
            meta: {
              title: '体育闯关活动',
              notLog: true,
              roles: ['config','list','save']
            }
          },
          {
            path: 'activity-tiger-rescue',
            name: 'activity-tiger-rescue',
            component: _import('activities/tigerRescue/index'),
            meta: {
              title: '老虎机救援活动',
              notLog: true,
              roles: ['config','list','save']
            }
          },
          {
            path: 'activity-real-break-through',
            name: 'activity-real-break-through',
            component: _import('activities/realBreakThrough/index'),
            meta: {
              title: '真人闯关活动',
              notLog: true,
              roles: ['config','list','save']
            }
          },
          {
            path: 'activity-spring-gold-eggs',
            name: 'activity-spring-gold-eggs',
            component: _import('activities/springGlod/index'),
            meta: {
              title: '春节活动-砸金蛋',
              notLog: true,
              roles: ['config', 'list', 'save','export-gold']
            }
          },
          {
            path: 'activity-spring-recharge',
            name: 'activity-spring-recharge',
            component: _import('activities/springRecharge/index'),
            meta: {
              title: '春节活动-体育充提',
              notLog: true,
              roles: ['config', 'list', 'save','export-recharge']
            }
          },
          {
            path: 'activity-spring-redrain',
            name: 'activity-spring-redrain',
            component: _import('activities/springRedRain/index'),
            meta: {
              title: '春节活动-红包雨',
              notLog: true,
              roles: ['config','list','save','export-redrain']
            }
          },
          {
            path: 'activity-rice-dumpling',
            name: 'activity-rice-dumpling',
            component: _import('activities/riceDumpling/index'),
            meta: {
              title: '端午节活动',
              notLog: true,
              roles: ['config', 'list', 'assign-reward', 'receive-info'],
            },
          },
          {
            path: 'activity-america-cup',
            name: 'activity-america-cup',
            component: _import('activities/americaCup/index'),
            meta: {
              title: '美洲杯活动',
              notLog: true,
              roles: ['list', 'reward'],
            },
          },
          {
            path: 'activity-english-premier-league',
            name: 'activity-english-premier-league',
            component: _import('activities/englishPremierLeague/index'),
            meta: {
              title: '英超活动',
              notLog: true,
              roles: ['list', 'award-search', 'config', 'assign-award-tab', 'assign-jackpot', 'read-address', 'reward-search-remark', 'save-activity-time',
                'add-big-notice', 'start-big-notice', 'delete-big-notice',
                'assign-reward', 'delete-assign-reward', 'read-user-detail'],
            },
          },
        ]
      },
    ]
  }
];

export default activityRoutes
